package ltd.smallwang;

import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;

class Leetcode0205Test {

  private final Leetcode0205 leetcode0205 = new Leetcode0205();

  @Test
  void testIsIsomorphic01() {
    Assertions.assertThat(leetcode0205.isIsomorphic("egg", "add")).isTrue();
  }

  @Test
  void testIsIsomorphic02() {
    Assertions.assertThat(leetcode0205.isIsomorphic("foo", "bar")).isFalse();
  }

  @Test
  void testIsIsomorphic03() {
    Assertions.assertThat(leetcode0205.isIsomorphic("paper", "title")).isTrue();
  }

  @Test
  void testIsIsomorphic04() {
    Assertions.assertThat(leetcode0205.isIsomorphic("ab", "aa")).isFalse();
  }

  @Test
  void testIsIsomorphic05() {
    Assertions.assertThat(leetcode0205.isIsomorphic("11", "12")).isFalse();
  }
}
